﻿using AutoMapper;
using B.S.BasicData.Domain;
using B.S.BasicData.Domain.SystemUsers;
using B.S.BasicData.Domain.XU;
using B.S.BasicData.Write.Api.Application.Command.Xu;
using B.S.BasicData.Write.Api.Dto;
using B.S.BasicData.Write.Api.Application.Command.SystemUsers.IAMCommand;
using B.S.BasicData.Write.Api.Application.Command.W;
using B.S.BasicData.Write.Api.Application.CommandHandler.W;
using B.S.BasicData.Write.Api.Application.Command.L;
using B.S.BasicData.Domain.Li;



namespace B.S.BasicData.Write.Api
{
    /// <summary>
    /// AutoMapper转换
    /// </summary>
    public class AutoMapperProFiles : Profile
    {
        /// <summary>
        /// 构造方法
        /// </summary>
        public AutoMapperProFiles()
        {
            //添加身份校验管理
            CreateMap<IAM_Model, IAMAddCommand>().ReverseMap();
            //添加箱子
            CreateMap<BoxModel, CreateBoxCommad>().ReverseMap();
            //修改箱子
            CreateMap<BoxModel, UpdeteBoxCommand>().ReverseMap();
            //查询箱子
            CreateMap<BoxModel, BoxListDto>().ReverseMap();
            //添加运货单
            CreateMap<CreatePendingShipmentWaybillsCommand, PendingShipmentWaybillsModel>().ReverseMap();
            //修改运货单
            CreateMap<UpdatePendingShipmentWaybillsCommand, PendingShipmentWaybillsModel>().ReverseMap();
            //修改身份校验管理
            CreateMap<IAM_Model, IAMUpdateCommand>().ReverseMap();
            //产品管理添加
            CreateMap<ProductManage, ProductManageCreateCommand>().ReverseMap();
            //产品管理更新
            CreateMap<ProductManage, ProductManageUpdateCommand>().ReverseMap();
        }
    }
}
